<!--显示用户登录后信息模块-->
{?if $user_info|@is_array?}
	{?foreach key=key item=item from=$user_info?}
			{?assign var=$key value=$item?}
	{?/foreach?}
{?/if?}
<div class="userinfo">
	 <div class="profile item no_border">
	 	 <!--用户头像-->
	 	 <div id="user_head">
	 	 	 <img src="{?$head_url?}" class="left" />
	 	 </div>
	 	 <!--登录用户详细信息-->
	 	 <div class="span-3 last userinfo_detail">
		 	 <span class="username" >用户名 : {?$nick?}</span>
	 	 	 <span class="reg_time" >注册于 : {?$reg_time?}</span>
	 	 </div>
	 </div>
	 <!--珍惜时间模块-->
	 <div class="lost_job item">
	 	 <strong>离失业还有</strong><br />
	 	 <span id="sandglass"></span>
 	  	 所以， 你懂的 <a href="#" >发粪去</a>
	 </div>
	 <!--牢骚模块-->
	 <div class="complaint item">
	 	 <strong>牢骚</strong>
	 	 <div class="item">
	 	 	 <div class="time">昨天 @ 下午5点30分17秒</div>
	 	 	 <div class="content">玩儿我是吧</div>
	 	 	 <div class="comment">
	 	 	 	 <!--回复的内容-->
	 	 	 	 <div class="content">
	 	 	 	 	 <span>哈哈</span> 
	 	 	 	 	 &lt;
	 	 	 	 	 来自 
	 	 	 	 	 <a href="#">JUDAS</a>
	 	 	 	 	 &gt;
	 	 	 	 </div>
	 	 	 	 <strong><a href="#">回应</a></strong>
	 	 	 	 <a href="#">(已有3回应)</a>
	 	 </div>
	</div>
</div>
</div>
<script language="javascript" type="text/javascript">
var interval = 1000;
function ShowCountDown(year,month,day,divname)
{
    	var now = new Date();
    	var endDate = new Date(year, month-1, day);
    	var leftTime=endDate.getTime()-now.getTime();
	var leftsecond = parseInt(leftTime/1000);
	//var day1=parseInt(leftsecond/(24*60*60*6));
	var day1=Math.floor(leftsecond/(60*60*24)); 
	var hour=Math.floor((leftsecond-day1*24*60*60)/3600);
	var minute=Math.floor((leftsecond-day1*24*60*60-hour*3600)/60);
	var second=Math.floor(leftsecond-day1*24*60*60-hour*3600-minute*60);

    	var cc  =   document.getElementById(divname);
    	cc.innerHTML = day1+"天"+hour+"小时"+minute+"分"+second;
}
 window.setInterval(function(){ShowCountDown(2011,7,1,'sandglass');}, interval);
</script>
